﻿@using NewRen.Models;
@using NewRen.Models.ViewModel;
@{
    ViewBag.Title = "板块列表";
    Layout = "~/Views/Shared/_Layout_Bbs.cshtml";
    List<vPlate> plates = ViewBag.Plates;
}
<div class="main container">
    <div class="top">
        <h3 class="left-border">板块列表</h3>
        @foreach (var item in plates)
        {
            <div class="left right-2 top20 pitem">
                <a href="/User/Forum/@item.ID">
                    @if (item.Picture == null)
                    {
                        <img src="/Images/logo.jpg" class="pic-hover">
                    }
                    else
                    {
                        <img src="/Bbs/ShowForumPicture/@item.ID" class="pic-hover">
                    }
                </a>
                <p>
                    <a href="/User/Forum/@item.ID">@item.Title</a>
                </p>
                <p>
                    @item.Description
                </p>
                <p>
                    @item.Time.ToString("yyy-M-d H:mm:s")
                </p>
                <p>
                    <span class="browse"><i class="see"></i>@item.Browses</span>
                    <span class="browse"><i class="msg"></i>@item.Collect</span>
                </p>
            </div>
        }
        <div class="clr"></div>
    </div>
</div>